package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Menu;
import cn.wolfcode.crm.query.impl.MenuQuery;

import java.util.List;

public interface MenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Menu record);

    Menu selectByPrimaryKey(Long id);

    List<Menu> selectAll(MenuQuery query);

    int updateByPrimaryKey(Menu record);

    List<Long> getMenuIdByRoleId(Long roleId);

    List<Menu> selectRootMenu();

    List<Long> selectByEmployeeId(Long id);
}